eb1fa8294925d8fb598831256a7411af2781aa36,components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java,WeatherConfiguration,getQuery,#,82

Before Change


            //assuming the location is a town,country
            location = "q=" + getLocation();
        }
        if (getPeriod() != null && getPeriod().isEmpty()) {

            result += "weather?" + location;

After Change


            location = "q=" + getLocation();
        }

        if (isEmpty(getPeriod())) {
            result += "weather?" + location;
        } else {
            result += "forecast/daily?" + location + "&cnt=" + getPeriod();